package com.dwxt.community.controller;

import com.dwxt.common.base.BaseResult;
import com.dwxt.community.service.GraphServie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cms/graph")
public class GraphController {

    @Autowired
    private GraphServie graphServie;


    @RequestMapping("/user")
    public BaseResult selectUserGraph() {
        return graphServie.selectUserGraph();
    }

    @RequestMapping("/selectUserGraphEveryDay")
    public BaseResult selectUserGraphEveryDay() {
        return graphServie.selectUserGraphEveryDay();
    }


    @RequestMapping("/selectIntegralGraph")
    public BaseResult selectIntegralGraph() {
        return graphServie.selectIntegralGraph();
    }
}
